package com.java_base.loop;

public class For_For {
    public static void main(String[] args) {
        // 九九乘法表
        int result = 0;
        for (int i = 1; i < 10; i++) {
            for (int j = 1; j <= i; j++) {
                result = i * j;
                if (result <= 9){
                    System.out.print(j+"×"+i+"="+result+"  ");
                }else {
                    System.out.print(j+"×"+i+"="+result+" ");
                }
            }
            System.out.println();
        }
    }
}
